package com.fsts.client;

import org.jdesktop.application.Application;
import org.jdesktop.application.SingleFrameApplication;


/**
 * 主方法
 * 
 * @version 1.0
 * @since JDK1.6(建议)
 */
public class Main extends SingleFrameApplication {

	/**
	 * At startup create and show the main frame of the application.
	 * 在启动的时候创建和显示程序的主框架
	 */
	@Override
	protected void startup() {
		show(new LoginGui(this));
//		show(new UserCenterGui("bob登录"));
	}

	@Override
	protected void configureWindow(java.awt.Window root) {
	}

	/**
	 * A convenient static getter for the application instance.
	 * 一个方便的静态获取器，用来获取本类的实例
	 * 
	 * @return the instance of Main
	 */
	public static Main getApplication() {
		return Application.getInstance(Main.class);
	}

	public static void main(String[] args) {
		launch(Main.class, args);
	}
}
